int->string/HEX

α


Summary

Turn α into a its **hexadecimal** string representation

Bytecode

Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.

(    0 ($push/val ))
(    2 ($det/val 'ret))
(    4 ($drop))
(    5 ($get/val ))
(    7 ($jf* 7))
(   10 ($push/false))
(   11 ($jmp* 4))
(   14 ($push/true))
(   15 ($dup))
(   16 ($jt* 14))
(   19 ($drop))
(   20 ($get/val ))
(   22 ($zero?))
(   23 ($dup))
(   24 ($jt* 6))
(   27 ($drop))
(   28 ($push/val #f))
(   30 ($jf* 9))
(   33 ($push/val 0))
(   35 ($ret))
(   36 ($jmp* 4))
(   39 ($push/nil))
(   40 ($drop))
(   41 ($get/val ))
(   43 ($push/int/byte 0))
(   45 ($<))
(   46 ($jf* 24))
(   49 ($get/val 'throw))
(   51 ($get/val 'list))
(   53 ($push/val :type-error))
(   55 ($push/val Can't print negative numbers in hex for now))
(   57 ($get/val ))
(   59 ($get/val 'current-lambda))
(   61 ($apply 0))
(   63 ($apply 4))
(   65 ($apply 1))
(   67 ($jmp* 4))
(   70 ($push/nil))
(   71 ($drop))
(   72 ($push/nil))
(   73 ($jmp* 37))
(   76 ($drop))
(   77 ($get/val 'cat))
(   79 ($get/val 'array/ref))
(   81 ($get/val 'int->string/hex/conversion-arr))
(   83 ($get/val 'bit-and))
(   85 ($get/val ))
(   87 ($push/int/byte 15))
(   89 ($apply 2))
(   91 ($apply 2))
(   93 ($get/val 'ret))
(   95 ($apply 2))
(   97 ($set/val 'ret))
(   99 ($drop))
(  100 ($get/val 'bit-shift-right))
(  102 ($get/val ))
(  104 ($push/int/byte 4))
(  106 ($apply 2))
(  108 ($set/val ))
(  110 ($get/val 'not=))
(  112 ($push/int/byte 0))
(  114 ($get/val ))
(  116 ($apply 2))
(  118 ($jt* -42))
(  121 ($drop))
(  122 ($get/val 'ret))
(  124 ($ret))